﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Default.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<AbstractSaaSTemplate.Domain.Models.Entities.User>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"><%: Metadata.RootUserListUsersTitle %></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MetaDescription" runat="server"><%: Metadata.RootUserListUsersDescription %></asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MetaKeywords" runat="server"><%: Metadata.RootUserListUsersKeywords %></asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="H1Content" runat="server"><%: Metadata.RootUserListUsersTitle %></asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="InnerBodyClass" runat="server">root user list-users</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="MainContent" runat="server">

<%: Html.ActionLink(
    Expressions.CreateNew,
    "CreateOrEditUser") %>

<table>
    <tr>
        <th class="first-name"><%: Expressions.FirstName %></th>
        <th class="last-name"><%: Expressions.LastName %></th>
        <th class="email-address"><%: Expressions.EmailAddress %></th>
        <th class="activated-at"><%: Expressions.ActivatedAt %></th>
        <th class="is-disabled"><%: Expressions.IsDisabled %></th>
        <th class="created-at"><%: Expressions.CreatedAt %></th>
    	<th></th>
	</tr>
	
<% foreach (var item in this.Model) { %>
    <tr>
        <td><%: item.FirstName %></td>
        <td><%: item.LastName %></td>
        <td><%: item.EmailAddress %></td>
        <td><%: string.Format("{0:g}", item.ActivatedAt) %></td>
        <td><%: item.IsDisabled %></td>
        <td><%: string.Format("{0:g}", item.CreatedAt) %></td>
        <td><%: Html.ActionLink(
			Expressions.Edit,
			"CreateOrEditUser",
			new { id=item.Id }) %></td>
    </tr>  
<% } %>
</table>

</asp:Content>

<asp:Content ID="Content7" ContentPlaceHolderID="StylesReferences" runat="server">
</asp:Content>

<asp:Content ID="Content8" ContentPlaceHolderID="JavascriptReferences" runat="server">
</asp:Content>
